package ly.registry.controller;

import ly.registry.entity.ScheduleTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ScheduledController {

    @Autowired
    private ScheduleTime scheduleTime;

    @RequestMapping("test01")
    public void testScheduleFixedRate(){
        scheduleTime.fixedRate();
    }
    @RequestMapping("test02")
    public void testScheduleFixedDelay(){
        scheduleTime.fixedDelay();
    }
    @RequestMapping("test03")
    public void testScheduleCron(){
        scheduleTime.cron();
    }


}
